package main

import (
	"fmt"
	"math"
)

func main() {
	fmt.Println("hello")
	ans := 0
	for i := 101; i <= 200; i++ {
		if funIsPrime(i) {
			ans++
			fmt.Println(i)
		}
	}
	fmt.Println("101-200中一共有", ans, "个质数")
}

func funIsPrime(num int) bool {
	if num%6 != 1 && num%6 != 5 {
		return false
	}
	for i := 5; i < int(math.Sqrt(float64(num))); i += 6 {
		if num%i == 0 || num%(i+2) == 0 {
			return false
		}
	}
	return true
}
